import express from 'express'
import router from './router/router'
import logger from './tools/logger'
import serverConfig from './config/server'

const app = express()

app.use(express.json())
app.use(router)

app.listen(serverConfig.port,serverConfig.host,()=>{
    logger.info(`Server Start Port: ${serverConfig.port} Host: ${serverConfig.host}`)
})